import { defHttp } from '/@/utils/http/axios';

// 查询首页总数据
export function getTotalData(query) {
    return defHttp.get({
        url: '/chat/statistics/index/total',
    }, query)
}

// 查询首页折线图数据
export function getLineData(query) {
    return defHttp.get({
        url: '/chat/statistics/index/line',
    }, query)
}

// 查询首页雷达图数据
export async function getRaddarData(query) {
    return defHttp.get({
        url: '/chat/statistics/index/raddar',
    }, query)
}

// 查询首页饼图数据
export async function getPieData(query) {
    return defHttp.get({
        url: '/chat/statistics/index/pie',
    }, query)
}

// 查询首页柱状图数据
export async function getBarData(query) {
    return defHttp({
        url: '/chat/statistics/index/bar',
    }, query)
}